package fr.mycompany.sas.binding;

import javax.xml.bind.annotation.adapters.XmlAdapter;

public class CdataConverter extends XmlAdapter <String, String> {

	
	public static String parseMethod(String value) {
		return value;
	}
	
	public static String printMethod(String value) {
		return "<![CDATA[" + value + "]]>";  
	}

	@Override
	public String unmarshal(String v) throws Exception {
		
		return v;
	}

	@Override
	public String marshal(String v) throws Exception {
		
		return "<![CDATA[" + v + "]]>"; 
	}
}
